home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / CMPRComponent.p < prev    next >
Text File  |  1996-05-01  |  2KB  |  94 lines

  1. {
  2.      File:        CMPRComponent.p
  3.  
  4.      Contains:    ColorSync ProfileResponder Components Interface 
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT CMPRComponent;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CMPRCOMPONENT__}
  28. {$SETC __CMPRCOMPONENT__ := 1}
  29.  
  30. {$I+}
  31. {$SETC CMPRComponentIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __QUICKDRAW__}
  38. {$I Quickdraw.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __COMPONENTS__}
  41. {$I Components.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __CMAPPLICATION__}
  44. {$I CMApplication.p}
  45. {$ENDC}
  46.  
  47. {$PUSH}
  48. {$ALIGN MAC68K}
  49. {$LibExport+}
  50.  
  51. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  52.  
  53. CONST
  54.     CMPRInterfaceVersion        = 0;
  55.  
  56. {  Component function selectors  }
  57.     kCMPRGetProfile                = 0;
  58.     kCMPRSetProfile                = 1;
  59.     kCMPRSetProfileDescription    = 2;
  60.     kCMPRGetIndexedProfile        = 3;
  61.     kCMPRDeleteDeviceProfile    = 4;
  62.  
  63. FUNCTION CMGetProfile(pr: ComponentInstance; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
  64.     {$IFC NOT GENERATINGCFM}
  65.     INLINE $2F3C, $0008, $0000, $7000, $A82A;
  66.     {$ENDC}
  67. FUNCTION CMSetProfile(pr: ComponentInstance; newProfile: CMProfileHandle): CMError;
  68.     {$IFC NOT GENERATINGCFM}
  69.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  70.     {$ENDC}
  71. FUNCTION CMSetProfileDescription(pr: ComponentInstance; DeviceData: LONGINT; hProfile: CMProfileHandle): CMError;
  72.     {$IFC NOT GENERATINGCFM}
  73.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  74.     {$ENDC}
  75. FUNCTION CMGetIndexedProfile(pr: ComponentInstance; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
  76.     {$IFC NOT GENERATINGCFM}
  77.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  78.     {$ENDC}
  79. FUNCTION CMDeleteDeviceProfile(pr: ComponentInstance; deleteMe: CMProfileHandle): CMError;
  80.     {$IFC NOT GENERATINGCFM}
  81.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  82.     {$ENDC}
  83. {$ENDC}
  84. {$ALIGN RESET}
  85. {$POP}
  86.  
  87. {$SETC UsingIncludes := CMPRComponentIncludes}
  88.  
  89. {$ENDC} {__CMPRCOMPONENT__}
  90.  
  91. {$IFC NOT UsingIncludes}
  92.  END.
  93. {$ENDC}
  94.